<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>


<portlet:defineObjects/>
<%renderResponse.setTitle("my portlet title");%>

<%
String myAttr = (String)request.getAttribute("myAttr");
%>
<%=myAttr%>
Hello!  The time is now: <%= new java.util.Date() %><br/>

<%
String value = renderRequest.getParameter("param");
Integer i = 1;
if (value != null) {
	i = Integer.parseInt(value);
	i++;
}
%>
<br/>Param : <%=i %> <br/>
<%
javax.portlet.PortletURL portletURL = renderResponse.createRenderURL();
portletURL.setParameter("param", i.toString());
String url =portletURL.toString(); 
%>
<a href="<%=url%>">url</a><br/>

<%
portletURL = renderResponse.createActionURL();
portletURL.setParameter("param", i.toString());
portletURL.setPortletMode(new javax.portlet.PortletMode("edit"));
String actionurl =portletURL.toString(); 
%>
<a href="<%=actionurl%>">url</a><br/>